import { SHIP_SERVICE_TAG_DEFAULT, SHIP_PASSENGER_TYPE_NOTICE } from '../../utils/constants'
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    open: {
      type: Boolean,
      value: false
    },
    current: {
      type: Object,
      value: () => {}
    },
    list: {
      type: Array,
      vlaue: () => []
    },
    inDep: {
      type: Boolean,
      value: false
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    defaultServiceTags: SHIP_SERVICE_TAG_DEFAULT,
    passengerTypes: SHIP_PASSENGER_TYPE_NOTICE
  },

  /**
   * 组件的方法列表
   */
  methods: {
    onServiceNotice: function(e) {
      const item = e.currentTarget.dataset.item
      this.triggerEvent('tab', item)
    },
    closeLineService: function() {
      this.triggerEvent('close')
    }
  }
})
